const express = require('express');
const multer = require('multer');
var path = require('path');
const app = express();
var artTemplate = require('express-art-template');
app.engine('html', artTemplate);

app.set('views', path.join(__dirname, 'views'));

app.use(express.static('public'));
app.use(express.urlencoded({extended: false}));

let form = multer();


app.get('/http://wthrcdn.etouch.cn/weather_mini?citykey=101180101',(req,res)=>{
    console.log('xinxi ');
console.log(req.query);
})


app.get('/', (req, res)=>{
    console.log('收到get请求');
    console.log(req.query);

    
    res.render('weather.html');
    
});




app.listen(5555, ()=>{
    console.log('node running');
});